package com.lizhenhua.orderStatus.service.impl;

import com.lizhenhua.fmmall.entity.Orders;
import com.lizhenhua.orderStatus.mapper.UpdateStatusMapper;
import com.lizhenhua.orderStatus.service.UpdateOrderStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class UpdateOrderStatusServiceImpl implements UpdateOrderStatusService {
    @Autowired
    private UpdateStatusMapper statusMapper;

    @Override
    public int updateStatus(Orders o) {
        System.out.println(o);

        int i = statusMapper.updateByPrimaryKeySelective(o);

        System.out.println("--------------updateByPrimaryKeySelective"+i);

        return i;
    }
}
